<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:fb="http://www.facebook.com/2008/fbml"
      xmlns:test="http://www.example.com/">
  <!--
    Copyright Facebook Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
  -->
  <head>
    <title>Mu Tests</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <link type="text/css" rel="stylesheet" href="qunit.css">
  </head>
  <body>
    <!--
    **************************************************************************
    QUnit Requirements
    **************************************************************************
    -->
    <h1 id="qunit-header">
      <input style="float: right; margin: 1em;"
             type="button"
             onclick="window.open('/jscoverage.html')"
             value="JSCoverage">
      Mu
    </h1>
    <h2 id="qunit-banner"></h2>
    <h2 id="qunit-userAgent"></h2>
    <ol id="qunit-tests"></ol>
    <div id="main"></div>
    <script src="./qunit.js"></script>


    <!--
    **************************************************************************
    Test Requirements
    **************************************************************************
    -->
    <button id="action"></button>
    <script>
      var action = document.getElementById('action');
    </script>
    <div id="fb-root"></div>


    <!--
    **************************************************************************
    Library
    **************************************************************************
    -->
    <link href="../src/css/button.css" rel="stylesheet" type="text/css">
    <link href="../src/css/dialog.css" rel="stylesheet" type="text/css">
    <link href="../src/css/iframe_widget.css" rel="stylesheet" type="text/css">
    <link href="../src/css/share_button.css" rel="stylesheet" type="text/css">

    <script src="../src/third-party/json2.js"></script>

    <script src="../src/core/prelude.js"></script>
    <script src="../src/core/json.js"></script>
    <script src="../src/core/intl.js"></script>
    <script src="../src/common/type.js"></script>

    <script src="../src/common/anim.js"></script>
    <script src="../src/common/array.js"></script>
    <script src="../src/common/dom.js"></script>
    <script src="../src/common/loader.js"></script>
    <script src="../src/common/obj.js"></script>
    <script src="../src/common/string.js"></script>

    <script src="../src/compat/ui.js"></script>
    <script src="../src/compat/xfbml.js"></script>

    <script src="../src/core/api.js"></script>
    <script src="../src/core/auth.js"></script>
    <script src="../src/core/canvas.js"></script>
    <script src="../src/core/component.js"></script>
    <script src="../src/core/content.js"></script>
    <script src="../src/core/cookie.js"></script>
    <script src="../src/core/dialog.js"></script>
    <script src="../src/core/event.js"></script>
    <script src="../src/core/flash.js"></script>
    <script src="../src/core/init.js"></script>
    <script src="../src/core/insights.js"></script>
    <script src="../src/core/qs.js"></script>
    <script src="../src/core/ui.js"></script>
    <script src="../src/core/ui_methods.js"></script>
    <script src="../src/core/xd.js"></script>

    <script src="../src/data/data.js"></script>
    <script src="../src/data/query.js"></script>
    <script src="../src/data/waitable.js"></script>

    <script src="../src/xfbml/element.js"></script>
    <script src="../src/xfbml/xfbml.js"></script>
    <script src="../src/xfbml/button_element.js"></script>
    <script src="../src/xfbml/helper.js"></script>
    <script src="../src/xfbml/iframe_widget.js"></script>
    <script src="../src/xfbml/edge_widget.js"></script>
    <script src="../src/xfbml/tags/activity.js"></script>
    <script src="../src/xfbml/tags/comments.js"></script>
    <script src="../src/xfbml/tags/fan.js"></script>
    <script src="../src/xfbml/tags/like.js"></script>
    <script src="../src/xfbml/tags/live_stream.js"></script>
    <script src="../src/xfbml/tags/login.js"></script>
    <script src="../src/xfbml/tags/loginbutton.js"></script>
    <script src="../src/xfbml/tags/name.js"></script>
    <script src="../src/xfbml/tags/profilepic.js"></script>
    <script src="../src/xfbml/tags/recommendations.js"></script>
    <script src="../src/xfbml/tags/serverfbml.js"></script>
    <script src="../src/xfbml/tags/sharebutton.js"></script>
    <script src="../src/xfbml/tags/connect_bar.js"></script>

    <!--
    **************************************************************************
    Harness Setup
    **************************************************************************
    -->
    <script>
      (function() {
        // if we are running on a facebook.com domain, munge the FB._domain map
        // to point to the current domain. this is useful for facebook
        // developers working on the unit tests in their sandboxes.
        var host = location.host;
        if (host.substr(-13) === '.facebook.com') {
          FB._domain.www = FB._domain.cdn = 'http://' + host + '/';
          FB._domain.api = FB._domain.www.replace('www', 'api');
          FB._domain.api_read = FB._domain.www.replace('www', 'api-read');
          FB._domain.graph = FB._domain.www.replace('www', 'graph');
          FB._domain.staticfb = FB._domain.www.replace('www', 'static');
        }


        // scroll to the bottom of the page as the tests run. this ensures the
        // latest test is always in view.
        QUnit.testDone = function(name, failures, total) {
          window.scrollTo(0, 100000);
        };
      })();
    </script>


    <!--
    **************************************************************************
    TESTS
    **************************************************************************
    -->
    <!-- tests that don't require interaction -->
    <script src="js/prelude.js"></script>
    <script src="js/canvas.js"></script>
    <script src="js/content.js"></script>
    <script src="js/qs.js"></script>
    <script src="js/json.js"></script>
    <script src="js/insights.js"></script>
    <script src="js/type.js"></script>
    <script src="js/waitable.js"></script>
    <script src="js/array.js"></script>
    <script src="js/string.js"></script>
    <script src="js/flash.js"></script>
    <script src="js/xd.js"></script>
    <script src="js/dom.js"></script>
    <script src="js/dialog.js"></script>
    <script src="js/event.js"></script>
    <script src="js/cookie.js"></script>
    <script src="js/debug_logs.js"></script>
    <script src="js/initialize.js"></script>
    <script src="js/helper.js"></script>
    <script src="js/xfbml.js"></script>
    <script src="js/xfbmltest.js"></script>
    <script src="js/xfbmltags.js"></script>
    <script src="js/data.js"></script>
    <script src="js/api.js"></script>

    <!-- tests that require user interaction: -->
    <script src="js/uiserver.js"></script>
    <script src="js/edge_widget.js"></script>
    <script src="js/auth.js"></script>
    <script src="js/xfbmltags_with_session.js"></script>
    <script src="js/share.js"></script>
    <script src="js/add_friend.js"></script>
    <script src="js/publish.js"></script>
    <script src="js/revoke.js"></script>
    <script src="js/auth_events.js"></script>
    <script src="js/cleanup.js"></script>
  </body>
</html>
